<?php use_stylesheet('data/main.css') ?>

<ul>
    <li style="padding-right: 20px">Depth:</li>
    <?php foreach($depths as $d): ?>
        <?php if (!empty($currentDepth) && $currentDepth->id == $d->id): ?>
            <li class="current"><a><?php echo $currentDepth->observationdepth;?></a></li>
        <?php else: ?>
            <li><a id="depth_<?php echo $d->getId() ?>" href="<?php echo url_for('data/'.$relatedAction.'?obs='.$observationId.'&depth='.$d->getId()) ?>" ><?php echo $d->getObservationdepth();?></a></li>
        <?php endif; ?>
    <?php endforeach; ?>
    <?php if (empty($currentDepth)): ?>
            <li class="current"><a>New</a></li>
    <?php else: ?>
            <li><a href="<?php echo url_for('data/'.$relatedAction.'?obs='.$observationId.'&depth=new') ?>">New</a></li>
    <?php endif; ?>
</ul>
